//
//  CAUpdateShopCartApi.m
//  LNH
//
//  Created by twentylx on 2018/2/17.
//  Copyright © 2018年 twentylx. All rights reserved.
//

#import "CAUpdateShopCartApi.h"

@implementation CAUpdateShopCartApi {
    NSString *_cartId;
    NSString *_number;
}

- (instancetype) initCartId:(NSString *) cartId Number:(NSString *)number {
    self = [super init];
    if (self) {
        _cartId = cartId;
        _number = number;
    }
    return self;
}

-(YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

-(id)requestArgument{
    return @{
             @"token":GVUD.token,
             @"cart_id":_cartId,
             @"number":_number,
             };
}

-(NSString *)requestUrl{
    NSLog(@"%@", [NSString stringWithFormat:@"%@cart/setNumber",BASE_SERVICE_DOMAIN]);
    return [NSString stringWithFormat:@"%@cart/setNumber",BASE_SERVICE_DOMAIN];
}

@end
